package com.springBoot.repository;

import com.springBoot.entity.DataEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DataRepository {

    public Integer insert(DataEntity dataEntity);

    public Integer update(DataEntity dataEntity);

    public List<DataEntity> selectByParams(DataEntity dataEntity);

    public DataEntity selectForUpdate(DataEntity dataEntity);

    public Integer delete(DataEntity dataEntity);

    public Integer batchDeleteWithDataId(@Param("list") List<DataEntity> dataList);

    public Integer batchDeleteWithObjId(@Param("list") List<DataEntity> dataEntityList);

    public Integer batchUpdate(@Param("list") List<DataEntity> dataEntityList);

    public Integer batchInsert(List<DataEntity> dataEntityList);
}
